import React,{useState} from "react";
import RALayout from "./layout/RALayout";


export const qiankun ={ 
    // Before the load
  async bootstrap(props:any) {
    // console.log('app1 bootstrap', props);
    (<any>window).microAppName = props.microAppName;
  }, 
  // Before the load render
  async mount(props:any) {
    // console.log('app1 mount', props);
  },
  // After the unload 
  async unmount(props:any) {
    // console.log('app1 unmount', props);
  },
}


export function rootContainer(container:any) {
  return React.createElement(RALayout, {className: "RA"}, container);
}